/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ca.trader.utils;

import java.io.PrintWriter;
import java.io.StringWriter;
import java.io.Writer;

/**
 *
 * @author Ahsan
 */
public class DebugUtils
{

	 public static String getStackTraceAsString(Throwable aThrowable)
	 {
		  final Writer result = new StringWriter();
		  final PrintWriter printWriter = new PrintWriter(result);
		  aThrowable.printStackTrace(printWriter);
		  return result.toString();
	 }

}
